<style>

.ll ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ll li {
    float: left;
    /*border: 1px solid #000;
    border-bottom-width: 0;*/
    margin: 3px 3px 0px 3px;
    padding: 5px;
    background-color: #23b7e5;
    color: #fff;
    border-radius: 3px; 
}
.ll li:focus{
    background-color: #0000FF
}
.ll li:active{
   
    background-color: #0000FF
}
.ll li .plus{   
    border-radius: 25px; 
}
#mainView {
    border: 1px solid #ececec;
    clear: both;
    padding: 0 1em;
}
.aciv {
    background-color: rgb(23,96,161);
    color: #fff;
}
</style>
<div ng-controller="GetCampusbulidingsCtrl">
<div class="panel panel-default">

 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
 		<div class="nav navbar-nav m-t">
 			<a ui-sref="app.sys.campus({page:'{{$state.params.page}}'})" ><span style="background-color: #e0e0e0; text-align: center;"><i class="glyphicon glyphicon-arrow-left" style="height:30px;width:30px; "></i></span></a> 	            
            <span><b>系统设置</b></span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>校园管理</b> </span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>配置</b></span> 
         </div>
        <!-- nabar right -->
        <ul class="nav navbar-nav navbar-right" ng-controller="SigninFormController">          
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/a0.jpg" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu animated fadeInRight w">  
              <li>
                <a ui-sref="app.user.info">用户信息</a>
              </li>       
              <li class="divider"></li>
              <li>
                <a ui-sref="access.signin" ng-click="logout()">登出</a>
              </li>
            </ul>
            <!-- / dropdown -->
          </li>
        </ul>
 	</div>
</div>
<div class="panel panel-default m-t-n-md">
  <div class="panel-body">
      <div>
        <h4 id="schoolname"></h4>       
      </div>
      <div id="tabs">
       <div class="ll">
         <ul>
            <li ng-repeat="tab in mdata"                
                ng-click="onClickTab(tab)" >{{tab.type_name}}</li>
            <li ng-controller="NewCampusbulidingTypeModalCtrl" ng-click="open()" style="border-radius: 25px;">
              <a>
              <i class="fa fa-plus"></i>
              <script type="text/ng-template" id="newcampusbuildingtypeModalContent.html">
                <div ng-include="'tpl/sys/campus/buliding/newtypemodal.html'"></div>
              </script>              
              </a>
            </li>

          </ul>

       </div>
          
          <div id="mainView">   
             <input type="hidden" id="bulidingtype" >
             <input type="hidden" id="typeid" >
              <table class="table">
                <thead>
                  <tr>
                    <th>名称</th>
                    <th>总层数</th>
                    <th>负责人</th>
                    <th>联系电话</th>
                    <th>操作</th>
                  </tr>
                </thead>
                
                <tbody>
                  <tr ng-repeat="mm in aaData">
                    <td>{{mm.building_name}}</td>
                    <td>{{mm.layer_amount}}</td>
                    <td>{{mm.responser}}</td>
                    <td>{{mm.phone}}</td>
                    <td>
                      <a class="btn btn-xs btn-info" ui-sref="app.sys.campusconfigedit({'cbid':mm.campus_building_id,'cmid':mm.school_id})">编辑</a>
                      <a class="btn btn-xs btn-danger" ng-controller="DelCampusbulidingModalCtrl">
                        <script type="text/ng-template" id="delcampusbuildingModalContent.html">
                          <div ng-include="'tpl/sys/campus/buliding/delmodal.html'"></div>
                        </script> 
                        <span ng-click="del(mm)">删除</span> 
                      </a>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <a class="btn btn-xs btn-rounded btn-success" ng-controller="NewCampusbulidingLayerModalCtrl" ng-click="open()">
                        <i class="fa fa-plus"></i>
                         <script type="text/ng-template" id="newcampusbuildinglayerModalContent.html">
                            <div ng-include="'tpl/sys/campus/buliding/newlayermodal.html'"></div>
                          </script>     
                      </a>
                    </td>
                  </tr>
                </tbody>
              </table>
             <!--  <div class="text-center">
                <pagination boundary-links="true" total-items="totalItems"
                ng-model="currentPage" class="pagination-sm embed-responsive-item"
                previous-text="上一页"
                next-text="下一页"
                first-text="首页"
                last-text="尾页"
                max-size="maxSize"
                rotate="false" num-pages="numPages" ng-change="pageChanged()">
               </pagination>
              </div> -->
          </div>
      </div>
  


    </div>
</div>
</div>